import Vue from 'vue'
import Router from 'vue-router'
import index from '@/views/frontEnd/index.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'layout',
      component:index
    },
    {
      path: '/exper',
      name: 'experience',
      component:()=>import('@/views/frontEnd/experience.vue')
    },
    {
      path: '/resultStand',
      name: 'resultStand',
      component:()=>import('@/views/frontEnd/resultStand.vue')
    },
    {
      path:'/createStand',
      name:"createStand",
      component:()=>import('@/views/frontEnd/createStand.vue')
    },
    {
      path:'/myStand',
      name:"myStand",
      component:()=>import('@/views/frontEnd/myStand.vue')
    },
    {
      path:"/standContent",
      name:"standContent",
      component:()=>import('@/views/frontEnd/standContent.vue')
    },
    {
      path:'/ipAuth',
      name:'ipAuth',
      component:()=>import('@/views/frontEnd/ipAuth.vue')
    },
    {
      path:'/applyAuth',
      name:'applyAuth',
      component:()=>import('@/views/frontEnd/applyAuth.vue')
    },
    {
      path:'/ipauth/progress',
      name:"ipProgress",
      component:()=>import('@/views/ipAuth/authProgress.vue')
    },
    {
      path:'/ipauth/manageCenter',
      name:"ipManageCenter",
      component:()=>import('@/views/ipAuth/authManage.vue')
    },
    {
      path:'/admin',
      name:'admin',
      redirect:'/admin/index',
      component:()=>import('@/views/admin/index.vue'),
      children:[
        {
          path:'index',
          name:'adminIndex',
          component:()=>import('@/views/admin/brandList.vue')
        },
        {
          path:'exper',
          name:'adminExper',
          component:()=>import('@/views/admin/experienceList.vue')
        },
        {
          path:'user',
          name:'user',
          component:()=>import('@/views/admin/user.vue')
        }
      ]
    }
  ]
})
